#include <iostream>
#include <vector>
using std::cout;
using std::endl;
using std::vector;

class Point{
public:
    Point(int x = 0, int y = 1)
    :_x(x)
    ,_y(y)
    {}  

    void print(){
        cout <<"("<< _x << "," << _y<< ")" <<endl;
    }
private:
    int _x;
    int _y;
};
void test1(){
    vector <Point> vec_pt(10);
    auto p = vec_pt.begin();
    while(p != vec_pt.end()){
        p->print();
        ++p;
    }
}

void test2(){
    vector<Point> vec2(6);
    for(Point &pt : vec2){
        pt.print();
    }
}

int main()
{

    test1();
    cout << "============="<<endl;
    test2();
    return 0;
}

